﻿@model DevWeb.Biztalk.DeploymentSettings.WebUI.Models.IntegrationVersionViewModel

@{
    ViewBag.Title = "CreateVersion";
}

<h2>CreateVersion for Integration @Model.IntegrationName</h2>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Create Integration Version </legend>
        @Html.Hidden("IntegrationName", Model.IntegrationName)
        <div class="editor-label">
            @Html.LabelFor(model => model.ProductUpgradeCode)
        </div>
        <div class="editor-field">
            
            @Html.DisplayTextFor(model => model.ProductUpgradeCode)
            @Html.Hidden("ProductUpgradeCode", Model.ProductUpgradeCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IntegrationId)
        </div>
        <div class="editor-field">
          
            @Html.DisplayTextFor(model => model.IntegrationId)
            @Html.HiddenFor(model => model.IntegrationId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ProductId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ProductId)
            @Html.ValidationMessageFor(model => model.ProductId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Version)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Version)
            @Html.ValidationMessageFor(model => model.Version)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

       

        <div class="editor-label">
            @Html.LabelFor(model => model.CreateDateTime)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.CreateDateTime)
            @Html.DisplayTextFor(model => model.CreateDateTime)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}